package com.gxm.练习.多线程.线程池;

import java.util.concurrent.Callable;

/**
 * @author 郭训民
 * @description: TODO
 * @title: TaskCallable
 * @projectName jsee
 * @date 2021/7/17 9:05
 */
public class TaskCallable implements Callable {

    private String falg;

    public TaskCallable(String falg){
        this.falg = falg;
    }

    @Override
    public Object call() throws Exception {
        //int i = 1/0;
        Thread.sleep(2000);
        return Thread.currentThread().getName() + "|" + falg;
    }

}
